import request from '@/utils/request'

// 切换语言
export function changeLanguage(language) {
  return request({
    url: '/common/language',
    method: 'post',
    data: { language }
  })
}

// 获取当前语言
export function getCurrentLanguage() {
  return request({
    url: '/common/language',
    method: 'get'
  })
}

// 获取用户信息
export function getUserInfo() {
  return request({
    url: '/common/user',
    method: 'get'
  })
} 